package com.ytjj.qmyx.mall.model.response;

import com.ytjj.qmyx.mall.model.ProductActivityImg;
import com.ytjj.qmyx.mall.model.ProductImg;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;

/**
 * @Description 商品推荐图片返回
 * @ClassName ProductRecommendImgResponse
 *
 *
 * @Version 1.0
 **/

@Data
public class ProductRecommendImgResponse {

    /**
     * 主键
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 产品id
     *
     * @mbg.generated
     */
    private Integer productId;

    /**
     * 文件(图片、视频)
     *
     * @mbg.generated
     */
    private String imgUrl;

    /**
     * 排序
     *
     * @mbg.generated
     */
    private Integer sort;

    /**
     * 类型：轮播图banner 详细图 info
     *
     * @mbg.generated
     */
    private String type;

    /**
     * 文件类型 img默认图片 video视频
     *
     * @mbg.generated
     */
    private String fileType;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 修改时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public ProductRecommendImgResponse() {
    }

    public ProductRecommendImgResponse(ProductImg productImg) {
        BeanUtils.copyProperties(productImg, this);
    }

    public ProductRecommendImgResponse(ProductActivityImg productActivityImg) {
        BeanUtils.copyProperties(productActivityImg, this);
    }
}
